package top.zackyoung.druid.simple;

import top.zackyoung.druid.simple.config.DynamicDataSourceSwitcher;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 自定义的数据源的注解
 * @author ZackYoung
 * @version 1.0
 * @date 2021/9/28
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({
        ElementType.METHOD
})
public @interface MyDataSource {
    String value() default DynamicDataSourceSwitcher.MASTER;
}

